package com.example.springboot.modules.order.vo;

import com.example.springboot.modules.order.model.Purchase;
import com.example.springboot.modules.order.model.Supplier;

import java.util.Date;

/**
 * Created by zql on 2018/7/15.
 */
public class PurchaseVo extends Purchase{

    private Supplier supplier;

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public PurchaseVo() {
    }

    public PurchaseVo(Purchase purchase) {
            this.id=purchase.getId();
            this.number = purchase.getNumber();
            this.summoney = purchase.getSummoney();
            this.purchasetime = purchase.getPurchasetime();
            this.remark = purchase.getRemark();
            this.supplierid = purchase.getSupplierid();
            this.grade = purchase.getGrade();
            this.payamount = purchase.getPayamount();
            this.createtime = purchase.getCreatetime();
            this.status = purchase.getStatus();
            this.favorable = purchase.getFavorable();
            this.limit=purchase.getLimit();
            this.page=purchase.getPage();
            this.offset=purchase.getOffset();
            this.rows=purchase.getRows();
    }
}
